"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseNamedRegexGroups = void 0;
/**
 * Function than tryes to cast value of named
 * regex group into number
 */
const parseNamedRegexGroups = (groups) => (Object.fromEntries(Object.entries(groups).map(([key, value]) => ([key, Number(value) || value]))));
exports.parseNamedRegexGroups = parseNamedRegexGroups;
